package com.pcbly.web.business.config;




import java.util.HashMap;
import java.util.List;

import com.pcbly.web.bean.system.ConfigBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.business.BusinessException;


public interface ConfigService extends BaseService<ConfigBean> {

  /**
   *
   * @param config Config
   * @return Config
   * @throws BbscsException
   */
  public ConfigBean updateConfig(ConfigBean config) throws BusinessException;

  /**
   *
   * @param id String
   * @return Config
   */
  public ConfigBean findConfigByID(String id) throws Exception;

  /**
   *
   * @return List
   */
  public List<ConfigBean> findConfigs() throws Exception;

  /**
   *
   * @param configs HashMap
   * @throws BbscsException
   */
  public void updateAllConfigs(HashMap<String,ConfigBean> configs) throws BusinessException;

}
